package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdSensitive;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "敏感词管理", tags = "敏感词管理", description = "敏感词管理API")
public interface AdSensitiveControllerApi {

    /**
     * 根据名称分页查询
     * @param dto
     * @return
     */
    @ApiOperation("敏感词分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto dto);

    /**
     * 新增敏感词
     * @param sensitive
     * @return
     */
    @ApiOperation("新增敏感词")
    public ResponseResult insertSensitive(AdSensitive sensitive);

    /**
     *  修改敏感词
     * @param sensitive
     * @return
     */
    @ApiOperation("修改敏感词")
    public ResponseResult updateSensitive(AdSensitive sensitive);

    /**
     *  删除敏感词
     * @param id
     * @return
     */
    @ApiOperation("删除敏感词")
    public ResponseResult deleteSensitive(Integer id);
}
